home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / varia / egebook.lha / ege.book / 5 / Teacher.h < prev    next >
C/C++ Source or Header  |  1992-06-07  |  567b  |  34 lines

  1. #ifndef Teacher_h
  2. #define Teacher_h
  3.  
  4. #include <iostream.h>
  5. #include <bool.h>
  6. #include <String.h>
  7.  
  8. #include "Collection.h"
  9. #include "Employee.h"
  10. #include "Course.h"
  11.  
  12. class Course;
  13.  
  14. class Teacher: public virtual Employee {
  15.   friend void initialize();
  16.   Collection *teaching;
  17.   Collection *preferences;
  18.   static int MaxCourses;      // course maximum
  19. public:
  20.   Teacher() {
  21.     teaching = new Collection;
  22.     preferences = new Collection;
  23.   };
  24.   void maintain();
  25.   void print(){
  26.     cout << "Teacher: ";    
  27.     Employee::print();
  28.   };
  29.   bool add(Example *);
  30. };
  31.  
  32.  
  33. #endif
  34.